import { Link } from 'react-router-dom'
import { HomeOutlined,DiffOutlined,EditOutlined } from '@ant-design/icons';
function getItem(label, key, icon, children, type) {
  return {
    key,
    icon,
    children,
    label,
    type,
  };
}
 
const itemsadmin = [
  getItem(<Link to='/Layoutadmin/home'>个人主页</Link>, '1', <HomeOutlined />),
  getItem(<Link to='/Layoutadmin/student'>学生管理</Link>, '2', <DiffOutlined />),
  getItem(<Link to='/Layoutadmin/teacher'>教师管理</Link>, '3', <EditOutlined />),
  getItem(<Link to='/Layoutadmin/course'>课程管理</Link>, '4', <EditOutlined />),
];
 
 
const itemsstudent = [
  getItem(<Link to='/Layoutstudent/home'>个人主页</Link>, '1', <HomeOutlined />),
  getItem(<Link to='/Layoutstudent/coursepage'>课程管理</Link>, '3', <EditOutlined />),
  getItem(<Link to='/Layoutstudent/choose'>选课操作</Link>, '2', <DiffOutlined />),
  getItem(<Link to='/Layoutstudent/master'>退课操作</Link>, '4', <EditOutlined />),
  getItem(<Link to='/Layoutstudent/timetable'>课程表</Link>, '5', <EditOutlined />),
];
const itemsteacher = [
  getItem(<Link to='/Layoutteacher/home'>个人主页</Link>, '1', <HomeOutlined />),
  getItem(<Link to='/Layoutteacher/coursepage'>课程管理</Link>, '4', <EditOutlined />),
  getItem(<Link to='/Layoutteacher/timetable'>教师课表</Link>, '2', <EditOutlined />)
];
export default { itemsadmin, itemsstudent,itemsteacher };